﻿<UserControl x:Class="Seems.View.ElementView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
             xmlns:beh="clr-namespace:Seems.View.Behaviors"
             mc:Ignorable="d"
    Background="Transparent"         
    DataContext="{Binding LikeElement, Source={StaticResource Locator}}" 
    d:DesignWidth="259">
    
    <Grid x:Name="LayoutRoot" >
        <Border CornerRadius="10" Padding="4" 
                Background="#FFF5EDD9" 
                BorderThickness="1">
            <StackPanel>
                <Thumb>
                    <Thumb.Template>
                        <ControlTemplate>
                            <Border Background="Transparent" Cursor="Hand">
                                <TextBlock  
                                    Text="{Binding Name}"/>
                            </Border> 
                        </ControlTemplate>
                    </Thumb.Template>
                    <i:Interaction.Behaviors>
                        <beh:DragElementBehavior />
                    </i:Interaction.Behaviors>
                </Thumb>

                <ListBox 
                    ItemsSource="{Binding Attributes}" 
                    DisplayMemberPath="Name"
                    Background="Transparent"
                    BorderThickness="0"/>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>
